package gameEngine.experiments;

import org.apache.log4j.Logger;

/**
 * creates an experiment according to selected type
 * @author alon
 *
 */
public class ExperimentFactory {
	static Logger log=Logger.getLogger(ExperimentFactory.class);
	/**
	 * return an experiment according to selected type
	 * @param int type
	 * @return Experiment
	 */
	public static Experiment create(int type){
		switch(type){
		
		case 0:
			log.debug("type is "+type+" returned SimpleExperimentImpl");
			return new SimpleExperimentImpl();
		case 1: 
			log.debug("type is "+type+" returned MTSimpleExperimentImpl");
			return new MTSimpleExperimentImpl();
		
		}
		log.debug("No match for type "+type+" returned SimpleExperimentImpl");
		return new SimpleExperimentImpl(); 
	}
}
